﻿using System;
using System.Globalization;
using System.Web.UI;

namespace HospitalManager.QuanTriHeThong.DanhMuc
{
    public partial class DMTaiKhoan : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
            Session["CheckRefresh"] = Server.UrlEncode(DateTime.Now.ToString(CultureInfo.InvariantCulture));
            if (Session["username"] == null)
            {
                Response.RedirectToRoute("DangNhap");
            }
        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            ViewState["CheckRefresh"] = Session["CheckRefresh"];
        }
    }
}